

        <g:set var="entityName" value="${message(code: 'teacher.label', default: 'Teacher')}" />
             <g:form action="save" method="post" name="teacherCreate">
                <div class="dialog">
                    <table>
                        <tbody>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="username"><g:message code="teacher.username.label" default="Username" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'username', 'errors')}">
                                    <g:textField name="username" maxlength="50" value="${teacherInstance?.username}" /><span id="validName"></span>
                                    </br>
                                    <a href="javascript:" id="checkName">检测登录名</a>
                                </td>
                            </tr>
                                                
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="teacher.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" maxlength="50" value="${teacherInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sex"><g:message code="teacher.sex.label" default="Sex" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'sex', 'errors')}">
                                    <g:radioGroup class="radio" name="sex" labels="['男','女']"  values="['男','女']" value="男" >
                                    ${it.label} ${it.radio}
                                    </g:radioGroup>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="NO"><g:message code="teacher.NO.label" default="NO" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'NO', 'errors')}">
                                    <g:textField name="NO" maxlength="25" value="${teacherInstance?.NO}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="birthday"><g:message code="teacher.birthday.label" default="Birthday" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'birthday', 'errors')}">
                                    <g:textField name="birthday" value="" readonly="true"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="degree"><g:message code="teacher.degree.label" default="Degree" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'degree', 'errors')}">
                                    <g:lookupSelect class="select" id="degree" name="degree" realm="teacherdegree" value="${teacherdegree}"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="staff"><g:message code="teacher.staff.label" default="Staff" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'staff', 'errors')}">
                                    <g:lookupSelect class="select" id="staff" name="staff" realm="teacherstaff" value="${teacherstaff}"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="features"><g:message code="teacher.features.label" default="Features" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherInstance, field: 'features', 'errors')}">
                                    <g:lookupSelect class="select" id="features" name="features" realm="teacherfeatures" value="${teacherfeatures}"/>
                                </td>
                            </tr>
                             
 
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>